package cn.sherer.beans.weixin;

import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;
import java.io.Serializable;

/**
 * 微信用户Openid列表
 */
public class WxUserOpenid implements Serializable {
    private List<String> openid;

    public WxUserOpenid() {
    }

    public WxUserOpenid(List<String> openid) {
        this.openid = openid;
    }

    public List<String> getOpenid() {
        return openid == null ? new ArrayList<>() : openid;
    }

    public void setOpenid(List<String> openid) {
        this.openid = openid;
    }

    @Override
    public String toString() {
        return "WxUserOpenid{" + "openid=" + Arrays.toString(this.getOpenid().toArray()) +  "}";
    }
}
